package com.yihuu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by yuhui on 2017/7/26.
 */
@Controller
public class PageController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @RequestMapping("/send/{name}")
    public String send(@PathVariable("name") String name){
        return name;
    }
    @RequestMapping("/send/user/{name}")
    public String sendUser(@PathVariable("name") String name){
        return "user/"+name;
    }

}
